package cn.wjssl.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import cn.bugstack.middleware.db.router.annotation.DBRouterStrategy;
import cn.wjssl.infrastructure.persistent.po.RaffleActivityAccountMonthPO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 抽奖活动账户表-月次数
 */
@Mapper
public interface IRaffleActivityAccountMonthDao {

    // 扣减月账户库存
    int updateActivityAccountMonthSubtractionQuota(RaffleActivityAccountMonthPO accountMonthPO);

    // 创建月账户
    void insertActivityAccountMonth(RaffleActivityAccountMonthPO accountMonthPO);

    // 查询月账户
    @DBRouter
    RaffleActivityAccountMonthPO queryActivityAccountMonthByUserId(RaffleActivityAccountMonthPO accountMonthPO);

    // 增加月账户库存
    int addAccountQuota(RaffleActivityAccountMonthPO accountMonthPO);
}
